package com.ins.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细 实体类。
 *
 * @author ins
 * @since 2024-05-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "app_order_item")
public class AppOrderItem extends BaseEntity<AppOrderItem> implements Serializable {

    @Serial
    private static final long serialVersionUID = -6472441299840471337L;
    /**
     * 订单id
     */
    @Column(value = "order_id")
    private Long orderId;

    /**
     * 订单编号
     */
    @Column(value = "order_no")
    private String orderNo;

    /**
     * 信息id
     */
    @Column(value = "info_id")
    private Long infoId;

    /**
     * 信息分类id
     */
    @Column(value = "info_classify")
    private Long infoClassify;

    /**
     * 销售价格
     */
    @Column(value = "price")
    private BigDecimal price;

    /**
     * 总价
     */
    @Column(value = "total_price")
    private BigDecimal totalPrice;

    /**
     * 购买数量
     */
    @Column(value = "num")
    private Integer num;


}
